-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SHARD-44: GlobalTx fixes #103
base: dev
Are you sure you want to change the base?
Conversation
src/Data/Collector.ts
Outdated
@@ -73,6 +73,11 @@ | |||
executionGroupNodes: ConsensusNodeInfo[], | |||
minConfirmations: number = config.RECEIPT_CONFIRMATIONS | |||
): Promise<{ success: boolean; newReceipt?: Receipt.ArchiverReceipt }> => { | |||
// If robustQuery is disabled, do offline verification | |||
if (!config.useRobustQueryForReceipt) { |
Check failure
Code scanning / CodeQL
User-controlled bypass of security check High
action
user-provided value
793f574
to
c131ed4
Compare
f29133e
to
cf6a9e3
Compare
if (nestedCountersInstance) | ||
nestedCountersInstance.countEvent( | ||
'receipt', | ||
'Invalid_receipt_globalModification_valid_signs_count_less_than_votingGroupCount' |
Check failure
Code scanning / CodeQL
User-controlled bypass of security check High
action
user-provided value
This condition guards a sensitive action, but a
user-provided value
This condition guards a sensitive action, but a
user-provided value
56d1083
to
832bdec
Compare
…loadReceipt, improved error logs, deprecated setupWorkerProcesses and offloadReceipt.
82ce0d0
to
780ed88
Compare
The base branch was changed.
@S0naliThakur Since we have disabled the workers. We can also comment out the code where we are initializing and setting up the worker process. Please refer to these lines - CC: @aniketdivekar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please comment out the initWorkerProcess and setupWorkerProcesses methods.
Linear: https://linear.app/shm/issue/SHARD-44/globaltx-validation
Summary: Implement global receipt validation and enhance receipt verification logic
useRobustQueryForReceipt
flagstoreReceipt
method to useverifyArchiverReceipt
directly.verifyGlobalTxreceiptOffline
andverifyReceiptMajority
for better code readability.